
	
	$('#test').datagrid('load',{
		name:$('#name').val(),
		dbId:$('#dbId').val()
	});

	
	
	// 界面初始化
	function initView() {
		
	}
	
	//删除
	
	function deleteDict(dbId) {
		alert(1);
		var url = parent.formateUrl("person/delete/@.json".replace("@", dbId));
		alert(url);
		$.messager.confirm("删除","是否确认删除当前对象？",function (r){
			if(r)
			{
				
				
				$.ajax({
					type : "post",
					dataType : "json",
					url :url,
					success : function(data) {
						$.messager.show({
							title:'提示',
							msg:'删除成功',
							showType:'show',
							timeout:1000,
							style:{
								right:'',
								top:document.body.scrollTop+document.documentElement.scrollTop,
								bottom:''
							}
						});
						//top.refresh('reloadList');
						_goto(1);
					},
					error : function() {
						$.messager.show({
							title:'提示',
							msg:data.msg.body,
							showType:'show',
							timeout:2000,
							style:{
								right:'',
								top:document.body.scrollTop+document.documentElement.scrollTop,
								bottom:''
							}
						});
					}
				});
			}
		})
		return 
		art.dialog.confirm("是否确定删除？", function() {
			var url = parent.formateUrl("person/delete/@.json".replace("@", dbId));
			$.ajax({
				type : "post",
				dataType : "json",
				url : url,
				success : function(data) {
					art.dialog.tips("删除成功");
					window.setTimeout(function() {
						//window.parent.frames["ifrm_data"]._goto(pageIndex);
						top.refresh('reloadList');
						art.dialog.close();
					}, 1500);
				},
				error : function() {
					art.dialog.tips("删除失败");
				}
			});
		});
	}
	
	
	
